@charset "UTF-8";
/* SLIDER PRINCIPAL */

.responsive-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
  background: #000;
}

/* DIAPOSITIVAS */

.responsive-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.responsive-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* CONTENEDOR DE IMÁGENES */

.responsive-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* IMÁGENES COMPLETAS */

.responsive-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* CAPA OSCURA */

.responsive-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.55),
    transparent 15%
  );
  pointer-events: none;
}

/* TEXTO */

.slider-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  max-width: 650px;
  color: #fff;
}

.slider-content h1 {
  font-size: clamp(32px, 5vw, 75px);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 20px;
}

.slider-content p {
  font-size: clamp(16px, 2vw, 23px);
  margin-bottom: 30px;
}

/* BOTÓN */

.slider-content a {
  display: inline-block;
  padding: 15px 35px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  transition: .3s;
}

.slider-content a:hover {
  background: #111;
  color: #fff;
}

/* FLECHAS */

.slider-prev,
.slider-next {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.2);
  color: white;
  cursor: pointer;
}

.slider-prev {
  left: 25px;
}

.slider-next {
  right: 25px;
}

/* INDICADORES */

.slider-indicators {
  position: absolute;
  z-index: 5;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-indicators button {
  width: 30px;
  height: 4px;
  border: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}

.slider-indicators button.active {
  width: 50px;
  background: #fff;
}

/* TABLETS Y CELULARES */

@media (max-width: 767px) {

  .responsive-slider {
    height: 100vh;
    height: 100svh;
    min-height: 500px;
  }

  /* Imagen vertical completa */

  .responsive-slide img {
    object-fit: contain;
    object-position: center;
  }

  .responsive-slide::after {
    background: linear-gradient(
      0deg,
      rgba(0,0,0,.65),
      transparent 65%
    );
  }

  .slider-content {
    top: auto;
    bottom: 12%;
    left: 7%;
    right: 7%;
    transform: none;
    max-width: 100%;
    text-align: center;
  }

  .slider-content h1 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .slider-content p {
    font-size: 16px;
  }

  .slider-content a {
    padding: 13px 25px;
  }

  .slider-prev,
  .slider-next {
    width: 35px;
    height: 35px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

}

/* REDUCIR ANIMACIONES SI EL USUARIO LO PREFIERE */

@media (prefers-reduced-motion: reduce) {
  .responsive-slide {
    transition: none;
  }
}
